﻿



using System; 
using System.Collections;
using System.Collections.Generic ;
using System.Runtime.Serialization;

namespace ufida.u9.ait.openapi
{
	/// <summary>
	/// 采购订单AITDTO DTO :REST自定义的数据传输类型 
	/// 
	/// </summary>
	[DataContract(Namespace = "ufida.u9.ait.openapi")]
	[Serializable]
	public partial class POAITDTOData  
	{
		/// <summary>
		/// Default Constructor
		/// </summary>
		public POAITDTOData()
		{
			initData();
		}
		private void initData()
		{
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		

			//调用默认值初始化服务进行配置方式初始化
			UFSoft.UBF.Service.DTOService.InitConfigDefault(this);
		}
		[System.Runtime.Serialization.OnDeserializing]
		internal void OnDeserializing(System.Runtime.Serialization.StreamingContext context)
		{
			 initData();
		}
		#region Do SerializeKey -ForDTODataType
		//只为处理集合型EntityKey。原因集合型EntityKey由于使用臫的集合对象，无法实现数据共享.-UBF专用.
		public void DoSerializeKeyList(IDictionary dict)
		{
			if (dict == null ) dict = new Hashtable() ;
			if (dict[this] != null)
				return ;
			dict[this] = this;
	        			if (this.POLines!=null)
			{
				foreach(ufida.u9.ait.openapi.POLineAITDTOData objdata in this.POLines)
				{
					objdata.DoSerializeKeyList(dict);
				}
			}
				        	        	        			if (this.TC != null) 
			{
				this.TC.DoSerializeKeyList(dict);
			}
	        			if (this.TaxSchedule != null) 
			{
				this.TaxSchedule.DoSerializeKeyList(dict);
			}
	        			if (this.Supplier != null) 
			{
				this.Supplier.DoSerializeKeyList(dict);
			}
	        			if (this.ReceiptRule != null) 
			{
				this.ReceiptRule.DoSerializeKeyList(dict);
			}
	        			if (this.PurOper != null) 
			{
				this.PurOper.DoSerializeKeyList(dict);
			}
	        			if (this.PurDept != null) 
			{
				this.PurDept.DoSerializeKeyList(dict);
			}
	        			if (this.PostPeriod != null) 
			{
				this.PostPeriod.DoSerializeKeyList(dict);
			}
	        			if (this.Org != null) 
			{
				this.Org.DoSerializeKeyList(dict);
			}
	        			if (this.DocumentType != null) 
			{
				this.DocumentType.DoSerializeKeyList(dict);
			}
	        			if (this.ConfirmTerm != null) 
			{
				this.ConfirmTerm.DoSerializeKeyList(dict);
			}
	        			if (this.ConfirmAccording != null) 
			{
				this.ConfirmAccording.DoSerializeKeyList(dict);
			}
	        	        			if (this.DescFlexField != null) 
			{
				this.DescFlexField.DoSerializeKeyList(dict);
			}

		}
		#endregion 
		/// <summary>
		/// Constructor Full Argument
		/// </summary>
		public POAITDTOData(  List<ufida.u9.ait.openapi.POLineAITDTOData> pOLines  , System.String docNo  , System.String businessDate  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData tC  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData taxSchedule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData supplier  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData receiptRule  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData purOper  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData purDept  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData postPeriod  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData org  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData documentType  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData confirmTerm  , ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData confirmAccording  , System.String memo  , ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData descFlexField  )
		{
			initData();
			this.POLines = pOLines;
			this.DocNo = docNo;
			this.BusinessDate = businessDate;
			this.TC = tC;
			this.TaxSchedule = taxSchedule;
			this.Supplier = supplier;
			this.ReceiptRule = receiptRule;
			this.PurOper = purOper;
			this.PurDept = purDept;
			this.PostPeriod = postPeriod;
			this.Org = org;
			this.DocumentType = documentType;
			this.ConfirmTerm = confirmTerm;
			this.ConfirmAccording = confirmAccording;
			this.Memo = memo;
			this.DescFlexField = descFlexField;
		}
		#region System Fields 
		//--系统字段,目前没有.EntityData上有相应的字段,用于保存相关的实体状态信息,DTO上没有状态信息.	
		#endregion
		
		#region DTO Properties 
	
		

		/// <summary>
		/// 采购订单行
		/// 采购订单AITDTO.Misc.采购订单行
		/// </summary>
		private List<ufida.u9.ait.openapi.POLineAITDTOData> m_pOLines ;
		[DataMember(IsRequired=false)]
		public List<ufida.u9.ait.openapi.POLineAITDTOData> POLines
		{
			get	
			{	
				if (m_pOLines == null )
				{
					List<ufida.u9.ait.openapi.POLineAITDTOData> n_m_list = new List<ufida.u9.ait.openapi.POLineAITDTOData>() ;
					m_pOLines = n_m_list ;
				}
				return m_pOLines ;
			}
			set	
			{	
				m_pOLines = value ;	
			}
		}
			
		

		/// <summary>
		/// 单号
		/// 采购订单AITDTO.Misc.单号
		/// </summary>
		private System.String m_docNo ;
		[DataMember(IsRequired=false)]
		public System.String DocNo
		{
			get	
			{	
				return m_docNo ;
			}
			set	
			{	
				m_docNo = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据日期
		/// 采购订单AITDTO.Misc.单据日期
		/// </summary>
		private System.String m_businessDate ;
		[DataMember(IsRequired=false)]
		public System.String BusinessDate
		{
			get	
			{	
				return m_businessDate ;
			}
			set	
			{	
				m_businessDate = value ;	
			}
		}
			
		

		/// <summary>
		/// 原币
		/// 采购订单AITDTO.Misc.原币
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_tC ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData TC
		{
			get	
			{	
				return m_tC ;
			}
			set	
			{	
				m_tC = value ;	
			}
		}
			
		

		/// <summary>
		/// 税组合
		/// 采购订单AITDTO.Misc.税组合
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_taxSchedule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData TaxSchedule
		{
			get	
			{	
				return m_taxSchedule ;
			}
			set	
			{	
				m_taxSchedule = value ;	
			}
		}
			
		

		/// <summary>
		/// 供应商
		/// 采购订单AITDTO.Misc.供应商
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_supplier ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Supplier
		{
			get	
			{	
				return m_supplier ;
			}
			set	
			{	
				m_supplier = value ;	
			}
		}
			
		

		/// <summary>
		/// 收货原则
		/// 采购订单AITDTO.Misc.收货原则
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_receiptRule ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ReceiptRule
		{
			get	
			{	
				return m_receiptRule ;
			}
			set	
			{	
				m_receiptRule = value ;	
			}
		}
			
		

		/// <summary>
		/// 业务员
		/// 采购订单AITDTO.Misc.业务员
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_purOper ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData PurOper
		{
			get	
			{	
				return m_purOper ;
			}
			set	
			{	
				m_purOper = value ;	
			}
		}
			
		

		/// <summary>
		/// 部门
		/// 采购订单AITDTO.Misc.部门
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_purDept ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData PurDept
		{
			get	
			{	
				return m_purDept ;
			}
			set	
			{	
				m_purDept = value ;	
			}
		}
			
		

		/// <summary>
		/// 记账期间
		/// 采购订单AITDTO.Misc.记账期间
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_postPeriod ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData PostPeriod
		{
			get	
			{	
				return m_postPeriod ;
			}
			set	
			{	
				m_postPeriod = value ;	
			}
		}
			
		

		/// <summary>
		/// 组织
		/// 采购订单AITDTO.Misc.组织
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_org ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData Org
		{
			get	
			{	
				return m_org ;
			}
			set	
			{	
				m_org = value ;	
			}
		}
			
		

		/// <summary>
		/// 单据类型
		/// 采购订单AITDTO.Misc.单据类型
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_documentType ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData DocumentType
		{
			get	
			{	
				return m_documentType ;
			}
			set	
			{	
				m_documentType = value ;	
			}
		}
			
		

		/// <summary>
		/// 立账条件
		/// 采购订单AITDTO.Misc.立账条件
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_confirmTerm ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ConfirmTerm
		{
			get	
			{	
				return m_confirmTerm ;
			}
			set	
			{	
				m_confirmTerm = value ;	
			}
		}
			
		

		/// <summary>
		/// 立账依据
		/// 采购订单AITDTO.Misc.立账依据
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData m_confirmAccording ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfCommonArchiveDataDTOData ConfirmAccording
		{
			get	
			{	
				return m_confirmAccording ;
			}
			set	
			{	
				m_confirmAccording = value ;	
			}
		}
			
		

		/// <summary>
		/// 备注
		/// 采购订单AITDTO.Misc.备注
		/// </summary>
		private System.String m_memo ;
		[DataMember(IsRequired=false)]
		public System.String Memo
		{
			get	
			{	
				return m_memo ;
			}
			set	
			{	
				m_memo = value ;	
			}
		}
			
		

		/// <summary>
		/// 描述性弹性域
		/// 采购订单AITDTO.Misc.描述性弹性域
		/// </summary>
		private ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData m_descFlexField ;
		[DataMember(IsRequired=false)]
		public ufida.u9.ait.openapi.CopyOfDescFlexSegmentsData DescFlexField
		{
			get	
			{	
				return m_descFlexField ;
			}
			set	
			{	
				m_descFlexField = value ;	
			}
		}
			
		#endregion	

		#region Multi_Fields
																																
		#endregion 
	} 	
}
